package com.pearadmin.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pearadmin.common.nucleus.base.BaseModel;
import lombok.Data;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

@Data
@ToString
@Alias("SysRole")
@TableName("sys_role")
public class SysRole extends BaseModel {
    //唯一标识
    @TableId(value = "id",type = IdType.ID_WORKER_STR)
    private String id;
    //角色名称
    @TableField("name")
    private String name;
    //角色标识
    @TableField("code")
    private String code;
    //角色描述
    @TableField("description")
    private String description;
    //可用状态
    @TableField("status")
    private String status;
    //计算列
    @TableField(exist = false)
    private boolean checked;

}
